<?php
class ApiModule extends CWebModule
{
    public $defaultController = 'status';
    public $layout = false;

    public function init()
    {
        parent::init();
        $this->setImport(array(
            'api.components.*',
        ));
        Yii::app()->setComponents(array(
            'errorHandler'=>array(
                'class'=>'CErrorHandler',
                'errorAction'=>'api/site/error',
            )
        ));
    }
}

?>
